package com.similarworld.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Item item benzerlik iliskisinin saklandigi entity
 * 
 * @author erdal.bitik
 * */

@Entity
@Table(name="SIMILARITIES")
public class Similarity extends AbstractModel {
	
	private static final long serialVersionUID = 1L;
	
	@ManyToOne
	@JoinColumn(name = "BASE_ITEM_ID")
	private Item baseItem;
	
	@ManyToOne
	@JoinColumn(name = "TARGET_ITEM_ID")
	private Item targetItem;
	
	private Integer rate;
	
	public Item getBaseItem() {
		return baseItem;
	}
	
	public void setBaseItem(Item baseItem) {
		this.baseItem = baseItem;
	}
	
	public Item getTargetItem() {
		return targetItem;
	}
	
	public void setTargetItem(Item targetItem) {
		this.targetItem = targetItem;
	}
	
	public Integer getRate() {
		return rate;
	}
	
	public void setRate(Integer rate) {
		this.rate = rate;
	}
	
}
